<template>
    <view class="content">
        <view class="bg"></view>
        <view class="top-img">
            <!-- <image src="../static/image/r1.png" class="r-img"></image> -->
            <!-- <image src="../static/image/r2.png" class="r-img"></image> -->
            <image src="../static/image/r3.png" class="r-img"></image>
        </view>
        
        <view class="box">
            <image src="../static/image/r4.png" class="icon"></image>
            <view class="title">恭喜您，注册信息已提交成功</view>
            <view class="grey">等待管理员审核</view>
        </view>
		
		<view class="box2" v-if="!info.openid" @click="toOfficial">
			<view class="u-flex u-row-between u-col-center u-p-b-20">
				<view class="title2">公众号授权</view>
				<u-icon name="arrow-right" size="34"></u-icon>
			</view>
			<view class="grey">为了能接收到订单模板消息，您需要先进行公众号授权。</view>
		</view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                info: {},
            };
        },
        onShow() {
            this.getInfo()
        },
        methods: {
            toOfficial() {
                this.$gTo('/pagesA/apply/web')
            },
			
			getInfo() {
			    this.$ajax('driver_detail', {
			        user_token: this.$getSync('userToken'),
			    }).then(ret => {
			        if (ret.success == 1000) {
						this.info = ret.detail
						
			        } else {
			            this.$toast(ret.msg);
			        }
			    });
			},
        }
    };
</script>

<style lang="scss">
    
    
    page{
        background-color: #f2f4fa;
    }
    .content {
    	padding: 30rpx 20rpx;
    }
    .bg {
    	width: 100%;
    	height: 600rpx;
    	position: absolute;
    	top: 0;
    	left: 0;
    	z-index: -1;
        background: linear-gradient(to bottom, #004580,#18568c, #f2f4fa);
    }
    .top-img{
        padding: 10rpx 0 40rpx;
    }
    .r-img{
        width: 538rpx;
        height: 70rpx;
        margin: auto;
    }
    
    .box{
        padding: 110rpx 0;
        background-color: #fff;
        border-radius: 20rpx;
        display: flex;
        flex-direction: column;
        align-items: center;
		margin-bottom: 20rpx;
    }
	.box2{
		padding: 40rpx 30rpx;
		background-color: #fff;
		border-radius: 20rpx;
		margin-bottom: 20rpx;
	}
    .icon{
        width: 247rpx;
        height: 246rpx;
    }
    .title{
        font-size: 40rpx;
        font-weight: bold;
        color: #545454;
        padding-top: 35rpx;
        padding-bottom: 10rpx;
    }
	.title2{
		font-size: 30rpx;
		font-weight: bold;
		color: #545454;
	}
    .grey{
        font-size: 28rpx;
        color: #545454;
    }

</style>
